package project.Controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import project.AI.Impl.AiServiceImpl;

@RestController
public class AiController {

    @Autowired
    AiServiceImpl aiService;

    @PostMapping("/aireport")
    public String generatereport(@RequestParam("message") String message) {
        System.out.println(message);
        return aiService.call(message);
    }
}
